package vista;

import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFormattedTextField;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.ImageIcon;

import javax.swing.WindowConstants;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
import javax.swing.table.DefaultTableModel;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaPrincipalMagnifico extends javax.swing.JFrame {
        private JPanel jPanVentanaPM;
        private JButton jbtnCompraIngrediente;
        private JButton jbtnImagen;
        private JButton jButton1;
        private JButton jbtnIngredientesCantidad;
        private JButton jbtn;
        private JSeparator jSeparator4;
        private JTextField jTextFieldSeleccioneListado;
        private JTextField jTextFieldBienvenido;
        private JSeparator jSeparator3;
        private JButton jbtnSalir;
        private JSeparator jSeparator2;
        private JSeparator jSeparator1;
        private JButton jbtnRegistrarCategoria;
        private JButton jbtnRegistrarProducto;
        private JButton jbtnOrden;
        private JButton jbtnImagenPrincipal;

        /**
        * Auto-generated main method to display this JFrame
        */
        public static void main(String[] args) {
                SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                                VentanaPrincipalMagnifico inst = new VentanaPrincipalMagnifico();
                                inst.setLocationRelativeTo(null);
                                inst.setVisible(true);
                        }
                });
        }
        
        public VentanaPrincipalMagnifico() {
                super();
                initGUI();
        }
        
        private void initGUI() {
                try {
                        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
                        getContentPane().setLayout(null);
                        getContentPane().setBackground(new java.awt.Color(82,209,232));
                        {
                                jPanVentanaPM = new JPanel();
                                getContentPane().add(jPanVentanaPM);
                                jPanVentanaPM.setBounds(12, 12, 518, 509);
                                jPanVentanaPM.setLayout(null);
                                jPanVentanaPM.setBackground(new java.awt.Color(255,255,255));
                                jPanVentanaPM.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
                                {
                                        jbtnImagenPrincipal = new JButton();
                                        jPanVentanaPM.add(jbtnImagenPrincipal);
                                        jbtnImagenPrincipal.setBounds(38, 80, 203, 191);
                                        jbtnImagenPrincipal.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                        jbtnImagenPrincipal.setOpaque(false);
                                        jbtnImagenPrincipal.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen.jpg")));
                                        jbtnImagenPrincipal.setBackground(new java.awt.Color(82,209,232));
                                }
                                {
                                        jbtnOrden = new JButton();
                                        jPanVentanaPM.add(jbtnOrden);
                                        jbtnOrden.setText("Tomar Orden");
                                        jbtnOrden.setBounds(272, 88, 204, 34);
                                        jbtnOrden.setBackground(new java.awt.Color(82,209,232));
                                        jbtnOrden.setFont(new java.awt.Font("Dialog",0,14));
                                        jbtnOrden.setForeground(new java.awt.Color(0,0,0));
                                        jbtnOrden.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                }
                                {
                                        jbtnRegistrarProducto = new JButton();
                                        jPanVentanaPM.add(jbtnRegistrarProducto);
                                        jbtnRegistrarProducto.setText("Gestionar Producto");
                                        jbtnRegistrarProducto.setBounds(272, 175, 204, 35);
                                        jbtnRegistrarProducto.setBackground(new java.awt.Color(82,209,232));
                                        jbtnRegistrarProducto.setForeground(new java.awt.Color(0,0,0));
                                        jbtnRegistrarProducto.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                        jbtnRegistrarProducto.setFont(new java.awt.Font("Dialog",0,14));

                                }
                                {
                                        jbtnRegistrarCategoria = new JButton();
                                        jPanVentanaPM.add(jbtnRegistrarCategoria);
                                        jbtnRegistrarCategoria.setText("Gestionar Categoria");
                                        jbtnRegistrarCategoria.setBounds(272, 129, 204, 35);
                                        jbtnRegistrarCategoria.setBackground(new java.awt.Color(82,209,232));
                                        jbtnRegistrarCategoria.setForeground(new java.awt.Color(0,0,0));
                                        jbtnRegistrarCategoria.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                        jbtnRegistrarCategoria.setFont(new java.awt.Font("Dialog",0,14));
                                }
                                {
                                        jSeparator1 = new JSeparator();
                                        jPanVentanaPM.add(jSeparator1);
                                        jSeparator1.setBounds(32, 285, 449, 12);
                                        jSeparator1.setBackground(new java.awt.Color(82,209,232));
                                }
                                {
                                        jSeparator2 = new JSeparator();
                                        jPanVentanaPM.add(jSeparator2);
                                        jSeparator2.setBackground(new java.awt.Color(97,200,221));
                                        jSeparator2.setBounds(38, 65, 443, 17);
                                }
                                {
                                        jbtnSalir = new JButton();
                                        jPanVentanaPM.add(jbtnSalir);
                                        jbtnSalir.setText("Salir");
                                        jbtnSalir.setBounds(406, 461, 57, 22);
                                        jbtnSalir.setBackground(new java.awt.Color(82,209,232));
                                        jbtnSalir.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                }
                                {
                                        jSeparator3 = new JSeparator();
                                        jPanVentanaPM.add(jSeparator3);
                                        jSeparator3.setBackground(new java.awt.Color(82,209,232));
                                        jSeparator3.setBounds(32, 322, 449, 8);
                                }
                                {
                                        jTextFieldBienvenido = new JTextField();
                                        jPanVentanaPM.add(jTextFieldBienvenido);
                                        jTextFieldBienvenido.setText("Bienvenido al Sistema De Servicio de Comida Rápida");
                                        jTextFieldBienvenido.setBounds(17, 19, 476, 40);
                                        jTextFieldBienvenido.setBackground(new java.awt.Color(82,209,232));
                                        jTextFieldBienvenido.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                        jTextFieldBienvenido.setFont(new java.awt.Font("Century Schoolbook L",0,18));
                                        jTextFieldBienvenido.setEditable(false);
                                }
                                {
                                        jTextFieldSeleccioneListado = new JTextField();
                                        jPanVentanaPM.add(jTextFieldSeleccioneListado);
                                        jTextFieldSeleccioneListado.setText("Seleccione el Listado");
                                        jTextFieldSeleccioneListado.setBounds(32, 292, 444, 22);
                                        jTextFieldSeleccioneListado.setBackground(new java.awt.Color(82,209,232));
                                        jTextFieldSeleccioneListado.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                }
                                {
                                        jSeparator4 = new JSeparator();
                                        jPanVentanaPM.add(jSeparator4);
                                        jSeparator4.setBackground(new java.awt.Color(82,209,232));
                                        jSeparator4.setBounds(32, 438, 449, 5);
                                }
                                {
                                        jbtn = new JButton();
                                        jPanVentanaPM.add(jbtn);
                                        jbtn.setText("Venta de Productos");
                                        jbtn.setBounds(178, 330, 292, 22);
                                        jbtn.setBackground(new java.awt.Color(82,209,232));
                                        jbtn.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                }
                                {
                                        jbtnIngredientesCantidad = new JButton();
                                        jPanVentanaPM.add(jbtnIngredientesCantidad);
                                        jbtnIngredientesCantidad.setText("Cantidad Disponible de Ingredientes");
                                        jbtnIngredientesCantidad.setBounds(178, 365, 292, 22);
                                        jbtnIngredientesCantidad.setBackground(new java.awt.Color(82,209,232));
                                        jbtnIngredientesCantidad.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                }
                                {
                                        jButton1 = new JButton();
                                        jPanVentanaPM.add(jButton1);
                                        jButton1.setText("Ingredientes más Usados");
                                        jButton1.setBounds(178, 404, 292, 22);
                                        jButton1.setBackground(new java.awt.Color(82,209,232));
                                        jButton1.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                }
                                {
                                        jbtnImagen = new JButton();
                                        jbtnImagen.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images.jpeg")));
                                        jPanVentanaPM.add(jbtnImagen);
                                        jbtnImagen.setBounds(38, 330, 113, 102);
                                        jbtnImagen.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
                                        jbtnImagen.setBackground(new java.awt.Color(82,209,232));
                                }
                                {
                                        jbtnCompraIngrediente = new JButton();
                                        jPanVentanaPM.add(jbtnCompraIngrediente);
                                        jbtnCompraIngrediente.setText("Comprar Ingredientes");
                                        jbtnCompraIngrediente.setBounds(272, 222, 204, 37);
                                        jbtnCompraIngrediente.setBackground(new java.awt.Color(82,209,232));
                                        jbtnCompraIngrediente.setForeground(new java.awt.Color(0,0,0));
                                        jbtnCompraIngrediente.setFont(new java.awt.Font("Dialog",0,14));
                                }
                        }
                        pack();
                        this.setSize(544, 563);
                } catch (Exception e) {
                    //add your error handling code here
                        e.printStackTrace();
                }
        }
        
        public void addListener(ActionListener actionListener) {
                this.jbtnOrden.addActionListener(actionListener);
                this.jbtnIngredientesCantidad.addActionListener(actionListener);
                this.jbtnRegistrarProducto.addActionListener(actionListener);
                this.jbtn.addActionListener(actionListener);
                this.jButton1.addActionListener(actionListener);
                this.jbtnSalir.addActionListener(actionListener);
                this.jbtnRegistrarCategoria.addActionListener(actionListener);
                this.jbtnCompraIngrediente.addActionListener(actionListener);
        }

}
